<script type="text/javascript">
    var MusicStatusV = true;
    setTimeout(function(){
        // var myVideo = document.getElementsByName("video_main");
        var myVideo = document.getElementsByClassName("edui-upload-video");
        for (var i=0;i<myVideo.length;i++)
        {
            if(myVideo[i]){
                video_monitor(myVideo[i]);
            }
        }
    },2000);

    function video_monitor(myVideo) {
        //监听播放开始
        myVideo.addEventListener('play',function(){
            MusicStatusV = $("#audio_btn").hasClass('off');
            if (!MusicStatusV) {
                audio_pause();
            }
        });

        //监听播放结束
        myVideo.addEventListener('pause',function(){
            if (!MusicStatusV) {
                audio_play();
            }
        });

        //监听播放结束
        myVideo.addEventListener('ended',function(){
            if (!MusicStatusV) {
                audio_play();
            }
        });
    }
</script>